package com.iotechn.unimall.app.api.drivercar;

import com.iotechn.unimall.core.annotation.HttpMethod;
import com.iotechn.unimall.core.annotation.HttpOpenApi;
import com.iotechn.unimall.core.annotation.HttpParam;
import com.iotechn.unimall.core.annotation.HttpParamType;
import com.iotechn.unimall.core.annotation.param.NotNull;
import com.iotechn.unimall.core.exception.ServiceException;
import com.iotechn.unimall.data.domain.DrvierCarDO;
import com.iotechn.unimall.data.model.Page;

@HttpOpenApi(group = "driverCar", description = "足迹")
public interface DriverCarService {

    @HttpMethod(description = "可用司机列表")
    public Page<DrvierCarDO> driverCarPage(
            @HttpParam(name = "pageNo", type = HttpParamType.COMMON, description = "页码", valueDef = "1") Integer page,
            @HttpParam(name = "limit", type = HttpParamType.COMMON, description = "页长度", valueDef = "20") Integer limit
    ) throws ServiceException;


    @HttpMethod(description = "预约司机")
    public Object reserveDriver(
            @NotNull @HttpParam(name = "userId", type = HttpParamType.USER_ID, description = "用户ID") Long userId
    ) throws ServiceException;


    @HttpMethod(description = "详情")
    public DrvierCarDO detailByUserId(
            @NotNull @HttpParam(name = "userId", type = HttpParamType.USER_ID, description = "管理员ID") Long userId) throws ServiceException;

}
